package org.dromara.web.system.domain.bo;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.web.system.domain.AppBankCard;

/**
 * 银行卡管理业务对象 app_bank_card
 *
 * @author Lion Li
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppBankCard.class, reverseConvertGenerate = false)
public class AppBankCardBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 持卡人姓名
     */
    private String cardHolderName;

    /**
     * 银行卡类型
     */
    @NotBlank(message = "银行卡类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cardType;

    /**
     * 银行卡预留手机号
     */
    @NotBlank(message = "银行卡预留手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reservedPhone;

    /**
     * 银行卡号
     */
    private String cardNumber;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
